package xin.marcher.nacos.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xin.marcher.nacos.demo.config.DomeConfig;

import javax.annotation.Resource;

/**
 * @author marcher
 */
@RequestMapping("/nacos/dome")
@RestController
public class NacosDomeController {

    @Resource
    private DomeConfig domeConfig;

    @GetMapping("/test")
    public String test() {
        return "name: " + domeConfig.getName() + "," + "age: " + domeConfig.getAge();
    }
}
